:root {
    /*--Page-main-bg:rgba(25,87,210,.05);*/
    --Page-main-bg: #f7f7f9;
    --Layout-header-bg: #ffffff;
    --Layout-asideLink-fontSize: 14px;
    --Layout-aside-bg: #151e26;
    --Layout-brand-bg: #151e26;
    --Layout-aside-color: #a0a0a0;
    --Layout-aside-width: 12.5rem;

    --Modal-title-fontSize: 16px;

    --Form-description-color: #939497;
    --Form-description-fontSize: 13px;
    --Form-item-fontColor: #313131;
    --Form-input-color: #393939;
    --Form-input-onHover-borderColor: #2468f2;
    --Form-select-outer-boxShadow: 1px 1px 12px 1px #e7e7e7;
    --select-base-default-option-color:#464646;

    --Table-color: #5a5c61;
    --Table-fontSize: 14px;
    --Table-thead-color: #252525;
    --Table-thead-bg: #f0f4fb;
    --Table-borderColor: #eff1f4;
    --Table-placeholder-height: 22rem;
    --Table-onHover-bg:#f7faff;
    --Table-onHover-borderColor:#f0f0f0;
    --Table-onHover-color:#505050;
    --TableCell-paddingX: 5px;
    --TableCell-paddingY: 5px;
    --TableCell--edge-paddingX: 5px;


    --Toast-box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05);
    --Toast-borderRadius: 8px;

    --Tabs--line-padding: 1rem;
    --Tabs--line-color: #575757;

    --Pagination-fontSize: 14px;

    --Tree-indent: 1.4rem;

    --Drawer-body-padding: 0;
    --DropDown-caret-marginLeft: 3px;
    --DropDown-menuItem-color: #36383b;

    --dialog-header-fontSize: 18px;
    --button-light-default-font-color:#255abb;
    --animation-duration:0.2s;

    /** input disabled 字体色 */
    --text--muted-color: #6e727b;
}

.cxd-Layout-header {
    .cxd-Layout-headerBar {
        box-shadow: 1px 1px 12px 0px #e7e7e7;
    }
}
.cxd-Layout-content {
    .cxd-Page-headerRow {
        border-bottom: 0;
    }
}
.cxd-AppBcn{
    .cxd-AppBcn-item{
        font-size: 13px;
        color: #777;
    }
}

.cxd-Page{
    height: calc(100% - 1.875rem)
}
.cxd-Layout-brand{
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0;
    justify-content: center;
    img{
        width: 28px;
        height: 28px;
        display: inline-block;
        max-height: unset;
    }
    span{
        line-height: 1;
        font-size: 16px;
        font-weight: 500;
        color: #f4f4f4;
    }
}
.cxd-AsideNav-list{
    .cxd-AsideNav-item{
        &.is-active{
            color: #3674ff;
            font-weight: 500;
        }
        & > a{
            display: flex;
            align-items: center;
            padding-right: 24px;
            .cxd-AsideNav-itemIcon{
                line-height: 1 !important;
            }
            .cxd-AsideNav-itemLabel{
                font-size: 15px;
            }
            .cxd-AsideNav-itemArrow{
                display: flex;
                width: var(--gap-md);
                text-align: center;
                position: absolute;
                right: 6px;
                height: 100%;
                align-items: center;
            }
        }

    }
}
.cxd-Card--link{
    cursor: unset;
}


/******************************** 表单 ********************************/
.cxd-Form {
    .cxd-Form-description ul {
        padding-left: 20px;
    }
    .cxd-Form-item{
        &:last-child{
            margin-bottom: 24px;
        }
        & > .cxd-Form-label {
            font-weight: 500;
            color: #61656a;
        }
    }
    & > .cxd-Grid{
        &:last-child{
            .cxd-Form-item{
                &:last-child{
                    margin-bottom: 0;
                }
            }
        }
    }
}
.cxd-Form--quickEdit{
    & > div{
        &:last-of-type{
            margin-bottom: 0 !important;
        }
    }
}
.cxd-Combo-form{
    .cxd-Form-row{
        .cxd-Form-col{
            .cxd-Form-item{
                margin-bottom: 0;
            }
        }
    }
}
.cxd-DatePicker:not(is-disabled),
.cxd-Select:not(is-disabled){
    transition: border-color .2s ease;
    &:hover{
        box-shadow: 0 0 0 2px rgb(5 50 255 / 6%);
    }
}
:not(is-disabled){
    .cxd-TextControl-input,
    .cxd-TextareaControl-input{
        transition: border-color .2s ease;
        &:hover{
            box-shadow: 0 0 0 2px rgb(5 50 255 / 6%);
        }
    }
}

.cxd-DropDown {
    .cxd-DropDown-caret {
        & > svg{
            width: 0.55rem;
            height: 0.55rem;
            top: 0;
        }
    }
}
.cxd-DropDown-menu{
    box-shadow: 2px 2px 8px 1px #e3e3e3;
    & > li {
        a {
            display: flex;
            align-items: center;
            i {
                margin-right: 2px;
            }
        }
    }
}
.cxd-DatePicker{
    min-width: unset;
}
.cxd-ListControl{
    .cxd-ListControl-itemImage{
        img{
            border-radius: 5px;
            width: 140px;
        }
    }
}
.cxd-CheckboxesControl{
    &:not(.is-inline){
        .cxd-Checkbox{
            display: flex;
            align-items: center;
        }
    }
}
.cxd-Crud {
    .cxd-Crud-filter,
    .cxd-Crud-body {
        background: #fff;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0px 0px 9px 0px #e7e7e7;
        border: 0;
    }
    .cxd-Crud-body {
        .cxd-Crud-toolbar {
            .cxd-Crud-toolbar-item {
                height: auto;
                .cxd-Crud-statistics {
                    font-family: "Arial";
                    font-weight: 500;
                    color: #434343;
                }
            }
        }
    }
    .cxd-Panel {
        .cxd-Panel-heading {
            padding: 5px 5px 15px 4px;
            background: none;
            border-bottom: 1px solid #f7f7f7;
            .cxd-Panel-title {
                font-weight: 500;
                font-size: 16px;
                color: #3a3b3b;
                position: relative;
                display: flex;
                align-items: center;
                &:before {
                    content: ' ';
                    width: 4px;
                    display: inline-block;
                    height: 15px;
                    background: #2162e3;
                    border-radius: 3px;
                    margin-right: 5px;
                }
            }
        }
        .cxd-Panel-body {
            padding: 1rem;
            .cxd-Form-label {
                padding-right: 0.2rem;
            }
            .cxd-TplField {
                color: #565758;
            }
        }
        .cxd-Panel-footer{
            border-top: 1px solid #f7f7f7;
        }
    }
    & > .cxd-Cards {
        background: none;
        padding: 0px;
        border-radius: 0px;
        box-shadow: none;
    }
}
.cxd-Picker{
    .cxd-Crud {
        .cxd-Crud-filter,
        .cxd-Crud-body {
            padding: 5px;
            box-shadow: none;
            margin-bottom: 0;
            .cxd-Table-toolbar{
                padding-left: 0;
                padding-right: 0;
            }
        }
    }
}


/******************************* 表格 ********************************/
.cxd-Table {
    .cxd-Table-table {
        & > thead > tr > th {
            font-weight: 500;
            background: #f4f6fa;
            &:not(:last-child){
                border-right: 2px  solid #fff
            }
        }
        td{
            line-height: 22px;
            .cxd-PlainField{
                //display: flex;
                //align-items: center;
                min-height: 30px;
                display: inline-block;
                line-height: 30px;
            }
        }
        .cxd-TableCell-sortBtn{
            margin-right: 5px;
        }
    }
    .cxd-ColumnToggler {
        .cxd-Button {
            height: 2rem;
        }
        &-menu {
        }
        &-menuItem {
            display: flex;
            align-items: center;
            .cxd-Checkbox {
                display: flex;
                align-items: center;
                font-size: 13.5px;
                color: #565656;
            }
        }
    }

    //&.cxd-Table--autoFillHeight{
    //    .cxd-Table-contentWrap{
    //        .cxd-Table-content{
    //            table{
    //                height: 100%;
    //            }
    //        }
    //    }
    //}
}
.cxd-InputTable{
    .cxd-Table--autoFillHeight{
        .cxd-Table-contentWrap{
            .cxd-Table-content{
                table{
                    height: auto;
                }
            }
        }
    }
    .cxd-Table-placeholder{
        height: auto;
    }
}

/******************************** Tab ********************************/
.cxd-Tabs{
    .cxd-Tabs-links{
        & > .cxd-Tabs-link {
            &.is-active {
                a{
                    font-weight: 500 !important;
                }
            }
            & > a{
                padding: 0.6rem 1rem !important;
                display: flex;
                align-items: center;
                border-bottom-width:2px !important;
                i{
                    line-height: 1;
                    margin-right: 4px !important;
                    font-size: 15px;
                }
            }
        }
    }
}
/******************************** Tree ********************************/
.cxd-TreeControl{
    padding: 5px;
    border-radius: 3px;
    &.h-full{
        .cxd-Tree{
            max-height: unset;
            height: 100%;
        }
    }
}
.cxd-Tree{
    &-itemArrow{
        margin-right: 0.2rem;
        &Placeholder{
            width: 1.2rem;
        }
    }
    &-itemLabel{
        &-item{
            height: auto;
            padding: 2px 6px;
            border-radius: 3px;
        }
        margin-bottom: 0.1rem;
        &.is-checked{

        }
    }
    &-itemLabel.is-checked{
        .cxd-Tree-itemText{
            color:#313131;
        }
    }
    &-itemIcon{
        margin-right: 6px;
    }
    &-itemText{
        color:#666;
    }

    .cxd-Tree-rootIcon > svg, .cxd-Tree-folderIcon > svg, .cxd-Tree-leafIcon > svg{
        width: 0.8rem;
        height: 0.8rem;
    }
}
.cxd-Toast{
    padding: 10px 16px;
    &.cxd-Toast--success{
        background: #ffffff;
        border: 0;
    }
    .cxd-Toast-content{
        .cxd-Toast-body{
            font-size: 15px;
            color: #1319be;
        }
    }
}
.cxd-Drawer{
    .cxd-Drawer-header{
        padding: 0.75rem 1rem;
        .cxd-Drawer-title{
            font-size: 16px;
        }
    }
    .cxd-Drawer-footer{
        padding: 0.75em ;
    }
}
.cxd-Tag{
    border-radius: 3px;
    height: 1.5rem;
    font-weight: 500;
    &-text{
        font-size: 12px;
    }
}

/******************************** Nebula 通用样式 ********************************/

.nb-app {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nb-login{
    .cxd-Layout-brand {
        span {
            color: #414141;
        }
    }
}

.nb-card {
    position: relative;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0px 0px 9px 0px #e7e7e7;
    border: 0;
    .cxd-Crud-filter,
    .cxd-Crud-body {
        background: none;
        padding: 0px;
        border-radius: 0px;
        box-shadow: none;
    }
}
.nb-icon-btn {
    padding: 4px 8px;
    border-color: #fff;
    font-weight: 500;
    color: #313131 !important;
    height: 34px;
    margin-right: 24px;
    font-size: 15px;
    line-height: 1;

    &:hover {
        border-color: #f7f7f7 !important;
        background-color: #f7f7f7 !important;
        font-weight: 500;
    }
    &:last-child {
        margin-right: 0;
    }
    i {
        font-size: 22px;
    }
}

.nb-header-badge {
    .cxd-Badge-text {
        right: 33px;
        top: 7px;
        font-size: 13px;
        border-radius: 18px !important;
    }
}
.nb-header-drawer{
    .cxd-Crud-body{
        padding: 0;
        box-shadow: none;
        margin: 0;
        .cxd-Table-contentWrap{
            margin: 0;
        }
        .cxd-Crud-toolbar{
            .cxd-Crud-statistics{
                padding: 0 10px;
            }
        }
        .nb-message-title{
            font-size: 15px;
            color: #8d8d8e;
            font-weight: 500;
            &.warning{
                color: #303137;
            }
        }
        .nb-message-time{
            font-size: 13px;
            color: #444;
        }
        .nb-message-content{
            color: #999;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 13px;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-height: 1.5em;
            margin-top: 5px;
        }
    }
}

.nb-header-dropdown {
    li {
        &.cxd-DropDown-button {
            padding: 0;
            margin: 4px 5px;
            color: #636365;
            height: auto;
            &:hover {
                background: #f7f7f7;
                border-radius: 5px;
            }
            &:last-of-type {
                a{
                    color: #242424;
                    font-weight: 500;
                }
            }
            a {
                padding: 7px 12px;
                &.ptl-active {
                    font-weight: 500;
                    color: #2468f2;
                    background-color: #f7f7f7;
                    border-radius: 5px;
                }
                &.ptl-separator {
                    padding: 0;
                    border-top: 1px solid #eee;
                }
            }
        }
    }
}
.nb-header-bell {
    position: relative;
    &:after {
        content: ' ';
    }
    i {
        font-size: 22px;
    }
}

.nb-header-user {
    .cxd-Button {
        margin-right: 0;
    }
    .cxd-DropDown-menu {
        left: auto;
        right: 0;
    }
}

/******************************** 工作流 ********************************/

.nb-process-card{
    border-radius: 10px;
    background:#f4f8ff;
    border: 0;
    .cxd-Card-heading{
        .cxd-Card-avtarText{
            background: none;
            .cxd-TplField{
                display: flex;
                height: 100%;
                width: 100%;
                align-items: center;
                justify-content: center;
                & > span{
                    display: inline-block;
                    width: 100%;
                    height: 100%;
                    div{
                        width: 100%;
                        height: 100%;
                        border-radius: 12px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        background: #1e90ff;
                        i{
                            font-size: 26px;
                        }
                    }
                }
            }
        }
        .cxd-Card-meta{
            .cxd-Card-title{
                font-size: 15px;
            }
            .cxd-Card-subTitle{
                .cxd-TplField{
                    font-size: 13px;
                    color: #999;
                }
            }
        }
    }
    .cxd-Card-body{
        .cxd-PlainField{
            color: #828282;
            font-size: 14px;
        }
    }
    .cxd-Card-footer-wrapper{
        .cxd-Card-actions{
            border-top: 1px solid #fff;
            .cxd-Card-action{
                font-size: 13px;
                font-weight: 500;
                color: #195cef;
                align-items: center;
                display: flex;
                justify-content: center;
                i{
                    font-size: 15px;
                }
                &:hover{
                    background: unset;
                }
            }
        }
    }
}
.nb-process-def-title{
    & > span{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 5px;
        font-weight: 500;
        color: #313131;
    }
}
.nb-process-def-logo{
    display: flex;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin-right: 8px;
}
.nb-tree-side{
    //height: calc(100% - 280px);
    max-height: 640px;
    & > .cxd-TreeControl{
        height: calc(100% - 30px);
    }
    & > .cxd-Form-label{
        font-size: 15px;
        color: #3a3b3b;
        font-weight: bold;
    }
}
.nb-task-info-drawer{
    .cxd-Drawer-body{
        background: var(--Page-main-bg);
        padding: 0;
        .cxd-Page{
            background: unset;
        }
        .cxd-Tabs{
            background: #fff;
            height: 100%;
            display: flex;
            width: 100%;
            flex-direction: column;
            .cxd-Tabs-content{
                padding: 12px;
                background: var(--Page-main-bg);
                flex: 1;
                overflow: auto;
            }
        }
    }
}
.nb-task-info-form{
    background: #fff;
    box-shadow: 0px 0px 5px 0px #e7e7e7;
    border-radius: 3px;
    .cxd-Page{
        background: transparent;
    }
    .cxd-Panel--form{
        border: 0;
        box-shadow: none;
        .cxd-Panel-heading{
            background: #fff;
            padding: 20px 20px 25px 20px;
            .cxd-Panel-title{
                font-size: 22px;
                color: #313131;
                font-weight: 500;
                text-align: center;
            }
        }
        .cxd-Panel-footerWrap{
            display: none;
        }
    }
}
.nb-task-info-tasks{
    .cxd-Card{
        border: 0;
        box-shadow: 0px 0px 5px 0px #e7e7e7;
        border-radius: 3px;
        margin-bottom: 13px;
        .cxd-Card-avtarText{
            width: 46px;
            height: 46px;
            margin-right: 1rem;
            .cxd-TplField{
                line-height: 46px;
                vertical-align: top;
                text-transform: uppercase;
                h5{
                    margin-top: 4px;
                    margin-bottom: 0;
                    color: #6e6e6e;
                    font-size: 14px;
                    font-weight: 500;
                    text-transform: none;
                }
            }
        }
        .cxd-Card-title{
            font-size: 16px;
        }
        .cxd-Card-subTitle{
            color: #999;
        }
        .cxd-Card-body{
            padding-left: 77px;
            .cxd-Card-field{
                padding: 5px 10px;
                background: #f9f9fa;
                border-radius: 5px;
                margin-bottom: 10px;
                color: #757575;
                font-size: 14px;
                line-height: 1.45rem;
                &:last-of-type{
                    margin-bottom: 0;
                }
            }
        }
    }
}
.nb-task-info-files{
    .cxd-List{
        .cxd-List-heading{
            font-size: 13px;
            font-weight: 500;
            color: #313131;
        }
        .cxd-List-items{
            .cxd-ListItem{
                padding: 5px 8px;
                background: #fff !important;
                .cxd-TplField{
                    font-size: 14px;
                }
            }
        }
    }
}
.nb-tag{
    font-size: 11.5px;
    padding: 0px 8px;
    font-weight: 500;
    border-radius: 12px;
    min-width: 46px;
    display: inline-block;
    height: 22px;
    line-height: 22px;
    text-align: center;
    color: #fff;
    &.success{
        background: #51b03d;
    }
    &.danger{
        background: #df254a;
    }
    &.warning{
        background: #f1892e;
    }
    &.primary{
        background: #2468f1;
    }
    &.info{
        background: #bac8e3;
    }
}
.nb-input-range{
    .cxd-InputGroup{
        border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
        border-radius: 4px;
        transition: border-color 0.2s ease;
        &:hover{
            border-color: var(--Form-input-onHover-borderColor);
            box-shadow: 0 0 0 2px rgba(5, 50, 255, 0.06);
        }
        .cxd-TextControl-input{
            position: relative;
            border: 0;
            &:hover{
                box-shadow:none;
            }
            &:first-of-type{

            }
            &:last-of-type{
                border-left: 0;
                &:before{
                    content: '~';
                    position: absolute;
                    left: -5px;
                    color: #878787;
                    font-size: 18px;
                }
            }
        }
    }
}
